package com.manager.assignment.zq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.manager.model.model.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface SetSellerMapper extends BaseMapper<Customer> {

    /**
     * 设置CustomerInfo表的SellerId字段为空（包括空值）
     * @return
     */
    @Update("update customer set seller_id = null where id = #{id}")
    public boolean updateSellerIdById(Customer customer);

}
